﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Register.Domain
{
    /// <summary>
    /// 屠宰企业公司表
    /// </summary>
    [Table("SlaughterEnterprise")]
    public class SlaughterEnterprise
    {
        /// <summary>
        /// 公司编号
        /// </summary>
        [Key]
        public int CompanyId {  get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(100)]
        public string CompanyName { get; set; } = string.Empty;
        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime EstablishDate { get; set; }
        /// <summary>
        /// 公司地址（省）
        /// </summary>
        public int AddressId {  get; set; }
        /// <summary>
        /// 公司地址（市）
        /// </summary>
        public int City { get; set; }
        /// <summary>
        /// 公司地址（县）
        /// </summary>
        public int County { get; set; }
        /// <summary>
        /// 公司简介
        /// </summary>
        [StringLength(200)]
        public string CompanyProfile { get; set; } = string.Empty;
        /// <summary>
        /// 公司图片
        /// </summary>
        [StringLength(500)]
        public string? CampanyIntro { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted {  get; set; }

        /// <summary>
        /// 溯源编号
        /// </summary>
        public int TraceabilityId { get; set; }
    }
}
